﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using topicos2_oztech_drturin.Banco;

namespace topicos2_oztech_drturin.Medico
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            MedicoDB cons = new MedicoDB();

            if (cons.ValidarLogin(TextBox1.Text, TextBox2.Text))
            {
                Label1.Text = "Medico!!!";
            }
            else
            {
                Label1.Text = "dados incorretos";
            }
        }
    }
}